package com.woniuxy.dao;

import com.woniuxy.entity.Stu;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 作者
 * @create 2025-08-11 16:59
 * 封装学生数据操作的接口
 */
public interface StuDao {

    void insert(Stu stu) throws SQLException, ClassNotFoundException;
    void update(Stu stu) throws SQLException, ClassNotFoundException;
    void deleteBySid(int sid) throws SQLException, ClassNotFoundException;
    Stu selectBySid(int sid) throws SQLException, ClassNotFoundException, NoSuchFieldException, InstantiationException, IllegalAccessException;
    List<Stu> selectAll() throws SQLException, ClassNotFoundException, NoSuchFieldException, InstantiationException, IllegalAccessException;
    List<Stu> selectBySname(String sname) throws SQLException, NoSuchFieldException, InstantiationException, IllegalAccessException, ClassNotFoundException;


}
